<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/resources/script/fullcalendar-3.0.1/lib/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/resources/script/layer/layer.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#password").click(function() {
			window.location.href="${ pageContext.request.contextPath }/${ roler }/password";
		})
	})
</script>
<style type="text/css">
.error {
	color: #ff0000;
	font-style: italic;
	font-weight: bold;
	font-size: 13px;
	font-family: 幼圆;
}
</style>
</head>
<body>
	<sf:form method="post" commandName="duser" action="${ pageContext.request.contextPath }/${ roler }/userupdate">

		<table id="userinfo">
			<tr>
				<td><label>用户名:</label></td>
				<td><sf:input path="name" disabled="true" /></td>
				<td><button type="button" id="password">修改密码</button></td>
			</tr>
			<tr>
				<td><label>真实姓名:</label></td>
				<td><sf:input path="realName" /></td>
				<td><label class="error"><c:out
							value="${ errors.getFieldError('realName').getDefaultMessage() }"></c:out></label></td>
			</tr>
			<tr>
				<td><label>手机号码:</label></td>
				<td><sf:input path="phoneNumber" /></td>
				<td><label class="error"><c:out
							value="${ errors.getFieldError('phoneNumber').getDefaultMessage() }"></c:out></label></td>
			</tr>
			<tr>
				<%-- <s:select label="所属科室"
			list="{'部长','综合管理', '动力装置室','燃油室','APU室','防火室','综合试验室'}"
			labelposition="left" value="user.branch.name"></s:select> --%>
				<td><label>所属科室:</label></td>
				<td><sf:input path="branch.name" disabled="true" /></td>
			</tr>
			<tr>
				<td></td>
				<td><button class="save" type="submit">&nbsp;&nbsp;保&nbsp;&nbsp;&nbsp;&nbsp;存&nbsp;&nbsp;</button></td>
			</tr>

		</table>
	</sf:form>
</body>
</html>